// $Id: AccessSettings.cs 64 2008-05-06 18:29:47Z nvivo $

using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Xml;
using System.Xml.XPath;

namespace DBLGen.Plugins.Import
{
    public class AccessSettings : PluginSettings
    {
        private string _filePath;

        public string FilePath
        {
            get
            {
                return _filePath;
            }
            set
            {
                _filePath = value;
            }
        }

        public override PluginSettings Clone()
        {
            AccessSettings s = new AccessSettings();

            s._filePath = _filePath;
            
            return s;
        }

        protected override NameValueCollection SaveSettings()
        {
            NameValueCollection settings = new NameValueCollection();

            if (!String.IsNullOrEmpty(FilePath))
            {
                settings["path"] = FilePath;
            }

            return settings;
        }

        protected override void LoadSettings(NameValueCollection settings)
        {
            FilePath = settings["path"];
        }
    }
}
